import { PropType } from 'vue';
declare type editStyle = 'default' | 'img' | 'url';
declare type modeType = 'text' | 'number';
declare type SizeType = 'large' | 'default' | 'small';
declare type targetType = '_blank' | '_self' | '_parent' | '_top' | 'framename';
export const arrayBoxProps = {
    name: {
        type: String,
        default: '',
    },
    value: {
        type: Array,
        default: () => []
    },
    disabled: {
        type: Boolean,
    },
    readonly: {
        type: Boolean,
    },
    placeholder:{
        type: String,
    },
    editorStyle: {
        type: String as PropType<editStyle>,
        default: 'default'
    },
    type: {
        type: String as PropType<modeType>,
        default: 'text'
    },
    size: {
        type: String as PropType<SizeType>
    },
    //数组大小限制
    limit: {
        type: Number,
    },
    maxLength: {
        type: Number,
    },
    showWordLimit: {
        type: Boolean,
    },
    prepend: {
        type: String,
    },
    append: {
        type: String,
    },
    target: {
        type: String as PropType<targetType>,
        default: '_blank'
    },
    rules: {
        type: Array,
        default: () => []
    }
}